#include "StaticEntity.h"
#include "ItemGenerator.h"

StaticEntity::StaticEntity(const irr::core::string<c8>& entityModel, const irr::core::string<c8>& entitySkin, const irr::core::string<c8>& weaponModel, const irr::core::string<c8>& weaponSkin): Entity(), AnimatedEntity(entityModel, entitySkin, weaponModel, weaponSkin)
{
	getNode()->setID(512);                             
	parent__ = 0;
}

StaticEntity::~StaticEntity()
{
	if (parent__)
		parent__->removeChild(this);
}

void StaticEntity::setParent(ItemGenerator* it)
{
	parent__ = it;
}

void StaticEntity::update()
{
}

